PICK$

Syntax: PICK$ (n, slct$ {,slct$} )
Location: CONTROL (DIY Toolkit Vol E)

The function PICK$ takes one positive integer n and one or more other parameters slct1$, slct2$, etc. The function returns the value of the nth parameter, so n must be smaller than or equal to the number of supplied slct$.

Example:
100 bool%=RND (0 TO 1)
110 PRINT PICK$ (bool%+1,"no","yes")

CROSS-REFERENCE:
Note that conditions have a numeric value, see IF, AND and OR for details.
SELect ON..END SELect is a less restrictive alternative to PICK$.
